#include "frpc_msgio.h"
#include <cppbase/logging.h>
#include <handler/handlers.h>

#define appError -1
#define appFinished 1
#define appWaiting 0

namespace Frpc{
    //on bytes recied
int MsgIO::append(const void *buf, size_t *size)
{
    return parse_full_stream((char*)buf,size);

}

// to build bytes to send
int MsgIO::encode(struct iovec vectors[], int max)
{   

return collect_output(vectors);//number of string block
}
uint16_t RequestMsg::_seq=0;//static counter to indicate msg id;


}